<%@page import="uit.pubguru.constant.PubGuruConst"%>
<!--@author: Huong Tran-->
<%
            String username = (String) session.getAttribute("username");
            String login = (String) session.getAttribute("login");
            request.setAttribute("authoriD", request.getParameter("authorID"));
            System.out.print("lgin : " + login);

            String permission = (String) session.getAttribute("permissionId");
            System.out.print("per : " + permission);
            if (login != null) {
                if (login.equals("true")) {
                    if (String.valueOf(permission).equals(PubGuruConst.ADMIN_PERMISSION)) {
                        response.sendRedirect(PubGuruConst.BACKEND_PAGE);
                    } else {
                        response.sendRedirect(PubGuruConst.INDEX_PAGE);
                    }
                }
            }

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Publication Guru </title>
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link href="css/mystyle.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <div class="wrapper">
            <div class="header">
                <div class="menutop">
                    <ol>
                        <li class="headerli"> <a href="/PubGuru">Home</a> </li>
                        <li class="headerli"> <a href="/PubGuru/RankList">Rank List</a> </li>
                        <li class="headerli"> <a href="">Visual Publication Network</a> </li>
                        <li class="headerli"> <a href="">Others</a> </li>
                    </ol>
                </div>
            </div><!-- end .header -->
            <div class="content">                
                <div class="searchform">
                    <div class="logo_small"> 
                        <a href="/PubGuru">
                            <img src="images/GuruOfPub_04_small.png" alt="Publication Guru"/>
                        </a>
                    </div>
                    <div class="search-bar-wrapper">
                        <div class="searchwrapper_small">
                            <input id="sk" type="text" class="searchbox_small" name="search" value="" autocomplete="off"/>
                            <input id="btSearch" type="submit" value="" />
                        </div>
                        <div style="float: right; padding-top:5px;"> <a style= "font-size:11px;" href="/PubGuru/search.adv.guru">Advanced Search</a> </div>
                    </div>
                </div><!-- end search form -->

                <div class="content_wrapper">

                    <div class="center_wrapper">
                         <div id="pnlLogin" class="login-input-box">
                            <form action="UserController" method="POST">
                                <div id="login_wrapper">
                                    <div class="input_login_wrapper">
                                        <div class="login_form">
                                            <div class="login_title" languageid="login_lb_main_Login">Sign in/ <a href="register.jsp">Sign up</a></div>                                            
                                            <div>
                                                <div class="login_label" languageid="login_lb_userName">User name</div>
                                                <div class="login_input">
                                                    <input name="txt_User" type="text" id="txt_User" tabindex="1">
                                                </div>                                                
                                            </div>
                                            <div>
                                                <div class="login_label" languageid="login_lb_passWord">Password</div>
                                                <div class="login_input">
                                                    <input name="txt_Password" type="password" id="txt_Password" tabindex="2"/>
                                                </div>
                                             </div>   
                                            <div >                                               
                                                    <input type="checkbox" class="login_chk_save">
                                                    <span>Keep me signed in</span>
                                            </div>                                           
                                            <div class="login_submit"><input name="action" type="submit" value="login" class="g_button g_button_submit "/></div>
                                        </div>
                                        <div class="swap_logoSoftware">
                                            <div class="login_logo">
                                            </div>
                                        </div>
                                        <div class="login_copyright">
                                            <p>Copyright 2011<a href="#" target="_blank">Pubguru</a> </p>
                                        </div>

                                    </div>
                                </div>
                            </form>               
                        </div>
                    </div><!-- end center_content-->
                </div><!-- end content_wrapper-->
        </div><!-- end .content -->
        </div><!-- end .wrapper --> 
        <div class="push"></div>
        <div class="footer">
            <center>
                <ol>
                    <li class="footerli"> <a href="">Help</a> | </li>
                    <li class="footerli"> <a href="">FAQ</a> | </li>
                    <li class="footerli"> <a href="">About</a> | </li>
                    <li class="footerli"> <a href="">Contact</a> | </li>
                    <li class="footerli"> <a href="">Privacy Statement</a> <a><strong> - 2011 All rights reserved </strong></a> </li>
                </ol>
            </center>
            <!-- end .footer --></div>
    </body>
</html>
